/*
 * 全局业务接口集中管理
 * 使用方式：
 *   import Api from '@/api/apiMap';
 *   const res = await Api.user.login({ username, password });
 * 新增请求:
 *   dict: (type: string) => GET('/system/dict', { type }),
 */

import { GET, POST, PUT, DELETE, FILEPOST, FILE } from "./api";

/* 按需可按模块拆文件，这里先写在一起示例 */
const Api = {
    get_order_list: (params: object = {}) => GET("data_center/get_order_list", { ...params }), // 实时订单量
    get_today_order_total: (params: object = {}) => GET("data_center/get_today_order_total", { ...params }), // 今日交易额
    get_order_static: (params: object = {}) => GET("data_center/get_order_static", { ...params }), // 订单信息
    get_city_account_static: (params: object = {}) => GET("data_center/get_city_account_static", { ...params }), // 城市用户统计
    get_day_order_static: (params: object = {}) => GET("data_center/get_day_order_static", { ...params }), // 订单成交趋势
    get_privilege_award_list: (params: object = {}) => GET("data_center/get_privilege_award_list", { ...params }), // 实时权益获取
    get_privilege_static: (params: object = {}) => GET("data_center/get_privilege_static", { ...params }), // 会员权益收益
    get_gxz_award_list: (params: object = {}) => GET("data_center/get_gxz_award_list", { ...params }), // 实时贡献值
};

export default Api;
